package com.peak.spring.boot.api.repository;

public class FilterParam {

	public enum Operator {
		EQ, NEQ, LIKE, LLIKE, RLIKE, GT, LT, GTE, LTE, IN, NOTIN, BETWEEN, ISNULL, NOTNULL, EMPTY, NOTEMPTY, DISTINCT
	}

	private String fieldName;

	private Object value;

	private Operator operator;

	public FilterParam(String fieldName, Operator operator, Object value) {
		this.fieldName = fieldName;
		this.value = value;
		this.operator = operator;
	}


	public String getFieldName() {
		return fieldName;
	}

	public Object getValue() {
		return value;
	}

	public Operator getOperator() {
		return operator;
	}

}
